package cn.chenfeifx.example.examples;

import cn.chenfeifx.core.enums.Level;
import cn.chenfeifx.core.controls.CFAlert;
import javafx.geometry.Insets;
import javafx.scene.layout.StackPane;
import javafx.scene.layout.VBox;

//提示案例
public class CFAlertExample extends StackPane {

    /*CFAlert cfAlert1 = new CFAlert("Fortune knocks once at least at every man’s door.");
    CFAlert cfAlert2 = new CFAlert("Fortune knocks once at least at every man’s door.", Level.SUCCESS, true);
    CFAlert cfAlert3 = new CFAlert("Fortune knocks once at least at every man’s door.", Level.INFO);
    CFAlert cfAlert4 = new CFAlert("Fortune knocks once at least at every man’s door.", Level.WARN);
    CFAlert cfAlert5 = new CFAlert("Fortune knocks once at least at every man’s door.", Level.DANGER);
    //
    VBox hBox = new VBox(cfAlert1, cfAlert2, cfAlert3, cfAlert4, cfAlert5);

    public CFAlertExample() {
        getChildren().add(hBox);
        setPadding(new Insets(50));
        //
        hBox.setMaxSize(USE_COMPUTED_SIZE, USE_PREF_SIZE);
        hBox.setSpacing(20);
    }*/

}
